import java.util.Random;
import java.util.Scanner;

public class test {
    public static void main(String[] args) {
        Random random=new Random();
        int randNum= random.nextInt(1000);
        Scanner scan=new Scanner(System.in);
        while(true){
            System.out.println(("请输入你要猜的数字："));
            int num=scan.nextInt();
            if(num<randNum){
                System.out.println("小了");
            }else if(num>randNum){
                System.out.println("大了");
            } else{
                System.out.println("等于");
                break;
            }
        }

    }
}
